package baseAop4_tx_bank_web.bean;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Component
@ConfigurationProperties( prefix = "product") //一次性读取所有配置属性，根据前缀注入到不同的bean中
@Data
public class Product {
    private String pname;
    private Double price;
    private Boolean isUsed;
    private Date manData;
    private Map<String ,String > attributes;
    private Address address;
    private List<String> types;

}
